﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Domain.Core
{
    /// <summary>
    /// 类中属性变化时所需要的事件数据
    /// </summary>
    public class PropertyChangeEventArgs : EventArgs
    {
        private string _propertyName;
        private object _propertyValue;

        /// <summary>
        /// 带参构造方法
        /// </summary>
        /// <param name="propertyName">属性名</param>
        /// <param name="propertyValue">属性值</param>
        public PropertyChangeEventArgs(string propertyName, object propertyValue)
        {
            this._propertyName = propertyName;
            this._propertyValue = propertyValue;
        }

        /// <summary>
        /// 属性名
        /// </summary>
        public virtual string PropertyName
        {
            get
            {
                return this._propertyName;
            }
        }
        /// <summary>
        /// 属性值
        /// </summary>
        public virtual object PropertyValue
        {
            get
            {
                return this._propertyValue;
            }
        }
    }
}
